﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="UserInfoModify.aspx.cs" Inherits="Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div style="height: 600px; font-size: x-large;">

    <strong style="font-size: xx-large">
    <br />
    资料更新<br />
    </strong>

    <br />

        <asp:Panel ID="Panel1" runat="server" >
            <table style="width:100%; height:100%;" border="0" cellpadding="0" 
                cellspacing="0">
                <tr>
                    <td style="width: 117px" >
                        姓名:</td>
                    <td >
                        <asp:TextBox ID="TextBoxName" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="TextBoxName" ErrorMessage="用户名不能为空"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 117px">
                        性别:</td>
                    <td class="style6">
                        <asp:DropDownList ID="DropDownListSex" runat="server">
                            <asp:ListItem>男</asp:ListItem>
                            <asp:ListItem>女</asp:ListItem>
                            <asp:ListItem>保密</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td style="width: 117px">
                        出生日期:</td>
                    <td class="style6">
                        <asp:DropDownList ID="ddlYear" runat="server" 
                        CssClass="textbox">
                        </asp:DropDownList>
                        年 
                        <asp:DropDownList ID="ddlMonth" runat="server" 
                        CssClass="textbox">
                        </asp:DropDownList>
                        月 
                        <asp:DropDownList ID="ddlDay" runat="server" 
                        CssClass="textbox">
                        </asp:DropDownList>
                        日</td>
                </tr>
                <tr>
                    <td style="width: 117px">
                        头像:</td>
                    <td class="style6">
                        <asp:Image ID="Image1" runat="server" Height="128px" Width="128px" />
                        <br />
                        <asp:FileUpload ID="FileUpload1" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 117px">
                        地址:</td>
                    <td class="style6">
                        <asp:TextBox ID="TextBoxAddress" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 117px">
                        电话:</td>
                    <td class="style6">
                        <asp:TextBox ID="TextBoxPhone" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 117px">
                        邮箱:</td>
                    <td class="style6">
                        <asp:TextBox ID="TextBoxEmail" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 117px; height: 31px;">
                        班级:</td>
                    <td class="style9" style="vertical-align: middle; height: 31px;">
                        <asp:DropDownList ID="DropDownListClass" runat="server" DataTextField="class" 
                            DataValueField="class" datasourceid="SqlDataSource2">
                        </asp:DropDownList>
                        
                        <asp:HyperLink ID="HyperLink6" runat="server" NavigateUrl="~/NewClass.aspx">新建班级</asp:HyperLink>
                        
                        <br />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Label ID="Label1" runat="server" style="color: #FF0000"></asp:Label>
                        <br />
                        <br />
                        &nbsp;<asp:Button ID="ButtonOK" runat="server" onclick="ButtonOK_Click" 
                            Text="确定" />
                        &nbsp;<input type="button" value="取消" onclick="javascript:history.go(-1);"  /></td>
                </tr>
            </table>
        </asp:Panel>


                               <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                        SelectCommand="SELECT DISTINCT [class] FROM [class]"></asp:SqlDataSource>
                        <asp:XmlDataSource ID="XmlDataSource1" runat="server" 
        DataFile="~/XMLFile.xml" XPath="school/department"></asp:XmlDataSource>
    <asp:XmlDataSource ID="XmlDataSource2" runat="server" DataFile="~/XMLFile.xml" 
        XPath="school/grade"></asp:XmlDataSource>
        </div>
</asp:Content>

